package com.synergy.stockflow.production.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.synergy.stockflow.production.create.ReportOrTaskVo;
import com.synergy.stockflow.production.entity.ProductionReport;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

import java.util.List;

@Mapper
public interface ProductionReportMapper extends BaseMapper<ProductionReport> {
    List<ProductionReport> selectAll(Page<ProductionReport> objectPage);

    int updateListStatus(String reportId);

    List<ProductionReport> selectByReport(Page<ProductionReport> objectPage,
                                          @Param("taskId")String taskId,
                                          @Param("materialName")String materialName,

                                          @Param("reportPeopleId")String reportPeopleId,
                                          @Param("checkId")String checkId);

}